home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
try_qb
/
sinewave.bas
(
.txt
)
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
QuickBASIC Tokenized Source
|
1989-12-04
|
1.1 KB
|
16 lines
Style
Cycles
View port sized to proper scale for graph:
Make window large enough to graph sine wave from
0 radians to 2
radians:
Use to make dashed line.h
Scroll printed output in
rows 23 and 24.
Number of cycles (0 to end): "
Draw the x (horizontal) axis.
Start at (0,0) and plot the graph:
Calculate the y coordinate.
Draw a line from the last
point to the new point.